Piwik\Plugins\CoreConsole\Commands\GeneratePluginBase A

Total Complexity 64
Dependencies 14
Dependents 0
Total lines 311
Lines of code 245
Logical lines of code 158
Comment lines 45
Methods 18
Properties 0

Methods 18

Method Rating Maintainability Complexity Lines of code
checkAndUpdateRequiredPiwikVersion()
B
38 17 62
copyTemplateMethodToExisitingClass()
A
46 9 38
makeTranslationIfPossible()
S
52 5 25
copyTemplateToPlugin()
S
53 5 22
getPluginNamesHavingNotSpecificFile()
S
61 4 12
askPluginNameAndValidate()
S
58 3 16
createFolderWithinPluginIfNotExists()
S
64 3 10
createFileWithinPluginIfNotExists()
S
64 3 10
getPluginNames()
S
63 3 10
throwErrorIfNotGitInstalled()
S
70 2 6
replaceContent()
S
70 2 6
toJson()
S
71 2 6
getPathToCore()
S
76 1 4
doInitialize()
S
82 1 3
isEnabled()
S
81 1 3
buildTranslationKey()
S
70 1 6
getPluginPath()
S
80 1 3
removeNonJsonCompatibleCharacters()
S
79 1 3